package cn.kgc.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 课工场
 * @date 2024/10/21
 * @description  /nacos/client/m1
 */
@RestController
@RequestMapping("nacos/client")
public class NacosClientController {


    @Value("${server.port}")
    private String port;

    @Value("${spring.cloud.nacos.discovery.cluster-name}")
    private String clusterName;

    @GetMapping("m1")
    public String method1(){
        return "NacosClientController method1 ok port = "+port+"location = "+clusterName;
    }
}
